Logo
Explore Help
Register Sign In
retoor/wren
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
0fde331974c17df1ba1a231d18e50d5d40206813
wren/test/language/super/call_same_method.wren
T

19 lines
225 B
Plaintext
Raw Normal View History

feat: implement superclass method dispatch with new SUPER bytecodes and named call compiler
2013-12-13 16:37:49 +00:00
class Base {
foo {
feat: replace IO class with System class and remove separate IO module
2015-09-15 14:46:09 +00:00
System.print("Base.foo")
feat: implement superclass method dispatch with new SUPER bytecodes and named call compiler
2013-12-13 16:37:49 +00:00
}
}
class Derived is Base {
fix: remove default constructors and require explicit construct new() for all user classes
2015-09-01 15:16:04 +00:00
construct new() {}
feat: implement superclass method dispatch with new SUPER bytecodes and named call compiler
2013-12-13 16:37:49 +00:00
foo {
feat: replace IO class with System class and remove separate IO module
2015-09-15 14:46:09 +00:00
System.print("Derived.foo")
feat: implement superclass method dispatch with new SUPER bytecodes and named call compiler
2013-12-13 16:37:49 +00:00
super.foo
}
}
feat: replace new keyword with this constructor syntax and ClassName.new() calls across core library and docs
2015-07-10 16:18:22 +00:00
Derived.new().foo
feat: implement superclass method dispatch with new SUPER bytecodes and named call compiler
2013-12-13 16:37:49 +00:00
// expect: Derived.foo
// expect: Base.foo
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.27.2 Page: 166ms Template: 6ms
Dark
English
English
Licenses API