-
-
Save nddrylliog/d32adb57daafbdf86536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abs: abstract class {} | |
Imp: class extends Abs {} | |
// these two lines should work properly (ie. display "Abs! Imp!" | |
//operator == (a, b: Imp) { "Imp!" println() } | |
//operator == (a, b: Abs) { "Abs!" println() } | |
// and these two should work as well | |
operator == (a, b: Abs) { "Abs!" println() } | |
operator == (a, b: Imp) { "Imp!" println() } | |
a, b: Abs | |
a == b | |
c, d: Imp | |
c == d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment