Logo
Explore Mail Help
Register Sign In
Mirror/wren
1
0
Fork 1
You've already forked wren
mirror of https://github.com/wren-lang/wren.git synced 2026-01-18 13:49:59 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
36f3059e483116b7eecf4c51cc89cbd9c1b7dcb6
wren/test/language/super/call_same_method.wren

17 lines
195 B
Plaintext
Raw Normal View History

Get basic superclass method calls working.
2013-12-13 08:37:49 -08:00
class Base {
foo {
Clean up text handling a bit: - Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00
IO.print("Base.foo")
Get basic superclass method calls working.
2013-12-13 08:37:49 -08:00
}
}
class Derived is Base {
foo {
Clean up text handling a bit: - Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00
IO.print("Derived.foo")
Get basic superclass method calls working.
2013-12-13 08:37:49 -08:00
super.foo
}
}
Make constructors just methods. * Eliminate "new" reserved word. * Allow "this" before a method definition to define a constructor. * Only create a default constructor for classes that don't define one.
2015-07-10 09:18:22 -07:00
Derived.new().foo
Get basic superclass method calls working.
2013-12-13 08:37:49 -08:00
// expect: Derived.foo
// expect: Base.foo
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 75ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API