- 신선한 탐사자(fable) 단일 컨텍스트, 지시서 -round10-brief.md §2 레인 A·C 완료, B 부분, D ALL PASS - audit/handtrace-round10-reference-impl/: round7 참조 구현을 현재 계약으로 갱신·재실행 (부수: round7/ref9 _recompute 첫 인자 오류 발견·정정) - base/·인덱스 레이어는 미변경 — 결정은 사용자 배치 회신 뒤 -round10-followup.md로 Co-authored-by: qwreey <me@qwreey.moe> Claude-Session: https://claude.ai/code/session_01546hjsYNLSMZdHdPyTZaGb
24 lines
884 B
Text
24 lines
884 B
Text
--!nocheck
|
|
-- H-149 재검토: Observer:Subscribe의 콜론 위임 때문에 error level 2가 어느 줄을 가리키는가
|
|
local q = require("./core10")
|
|
local S = q.Source(0)
|
|
local inst = q.newInst("inst")
|
|
local o = S:Observer(function() end)
|
|
q.bindLifetime(inst, o)
|
|
local ok, err = pcall(function()
|
|
o:Subscribe() -- ← 사용자 호출부 (이 파일의 줄)
|
|
end)
|
|
print("Observer(leaf):Subscribe →", err)
|
|
local o2 = S:Observer(function() end)
|
|
q.bindLifetime(inst, o2)
|
|
local ok2, err2 = pcall(function()
|
|
o2:WeakSubscribe() -- ← 사용자 호출부
|
|
end)
|
|
print("Observer(leaf):WeakSubscribe →", err2)
|
|
-- 대조: EffectHandle은 인라인이라 사용자 줄을 가리킨다
|
|
local e = q.Effect(function() end)
|
|
q.bindLifetime(inst, e)
|
|
local ok3, err3 = pcall(function()
|
|
e:Subscribe() -- ← 사용자 호출부
|
|
end)
|
|
print("Effect(leaf):Subscribe →", err3)
|