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:
Nathan Braswell
2016-01-22 23:59:59 -05:00
parent 8c5bf36433
commit fc343ceea8
4 changed files with 41 additions and 21 deletions

View File

@@ -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
}