This commit has its date moved to earlier to reflect when the work was completed, as I forgot to actually make the commit until 2 minutes after midnight :/. It partially fixed a bug where ADT requires equality for its member types but won't use templated equality to be if there isn't a regular equality operator (not templated) it always returns false
This commit is contained in:
@@ -2,8 +2,8 @@ import to_import: simple_print, a, b
|
||||
|
||||
obj Something (ObjectTrait) {
|
||||
var member: int
|
||||
fun method():int {
|
||||
return 5
|
||||
fun method(a: int):int {
|
||||
return 5+a
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ fun main(): int {
|
||||
simple_print(an_obj.member)
|
||||
simple_print("here is thing")
|
||||
simple_print(123)
|
||||
simple_print(an_obj.method(1))
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user