Skip to content

Instantly share code, notes, and snippets.

@ycros
Created October 3, 2010 17:35
Show Gist options
  • Save ycros/608756 to your computer and use it in GitHub Desktop.
Save ycros/608756 to your computer and use it in GitHub Desktop.
A: class {
foo: String
init: func(=foo) {
}
}
B: class extends A {
init: func {
"I shouldn't compile!" println()
}
}
C: class {
init: func {
"Base implicitly called!" println()
}
}
D: class extends C {
init: func {
"I should call my base." println()
}
}
main: func {
B new()
D new()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment