From 3425b95cb654f8e1adc98365a4b370aa1fff8b4d Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 06:02:21 +0000 Subject: feat(classes): support ordinary member methods and this references Co-Authored-By: Claude Fable 5.1 --- tests/iii/class-method-errors/case.json | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/iii/class-method-errors/case.json (limited to 'tests/iii/class-method-errors/case.json') diff --git a/tests/iii/class-method-errors/case.json b/tests/iii/class-method-errors/case.json new file mode 100644 index 0000000..655296d --- /dev/null +++ b/tests/iii/class-method-errors/case.json @@ -0,0 +1,52 @@ +{ + "errors": [ + { + "reason": "Cannot redeclare this inside a method", + "line": 11 + }, + { + "reason": "A method parameter cannot be named this", + "line": 13 + }, + { + "reason": "NEW constructors are not implemented", + "line": 15 + }, + { + "reason": "Duplicate member set in class Box", + "line": 17 + }, + { + "reason": "Duplicate member Value in class Box", + "line": 19 + }, + { + "reason": "Cannot access private field Hidden of type Box", + "line": 25 + }, + { + "reason": "Cannot access private method Secret of type Box", + "line": 26 + }, + { + "reason": "Cannot access private method Secret of type Box", + "line": 30 + }, + { + "reason": "Cannot access private field Hidden of type Box", + "line": 31 + }, + { + "reason": "Incorrect # arguments passed to Box.Set", + "line": 32 + }, + { + "reason": "Type Box has no method Missing", + "line": 33 + }, + { + "reason": "Type INTEGER has no method Set", + "line": 35 + } + ] +} -- cgit v1.3.1-4-g156e