diff --git a/tests/404/method_on_class_ptr.jou b/tests/404/method_on_class_ptr.jou deleted file mode 100644 index 87c848f9..00000000 --- a/tests/404/method_on_class_ptr.jou +++ /dev/null @@ -1,7 +0,0 @@ -class Foo: - x: int - -def main() -> int: - f = Foo{x=1} - (&f).bar() # Error: type Foo* does not have any methods because it is a pointer type, not a class - return 0 diff --git a/tests/404/method_on_int.jou b/tests/404/method_on_int.jou deleted file mode 100644 index 9ad051d1..00000000 --- a/tests/404/method_on_int.jou +++ /dev/null @@ -1,2 +0,0 @@ -def foo() -> None: - (1 + 2).asdf() # Error: type int does not have any methods because it is a number type, not a class diff --git a/tests/already_exists_error/bool.jou b/tests/already_exists_error/bool.jou deleted file mode 100644 index 38f92a5d..00000000 --- a/tests/already_exists_error/bool.jou +++ /dev/null @@ -1,2 +0,0 @@ -def foo() -> None: - x = True.asdf() # Error: type bool does not have any methods because it is the built-in bool type, not a class diff --git a/tests/other_errors/method_on_ptr_called_on_class.jou b/tests/other_errors/method_on_ptr_called_on_class.jou deleted file mode 100644 index 4998d191..00000000 --- a/tests/other_errors/method_on_ptr_called_on_class.jou +++ /dev/null @@ -1,11 +0,0 @@ -class Foo: - x: int - - def bar(self) -> None: - return - -def asdf() -> None: - f = Foo{x=1} - f.bar() - (&f)->bar() - (&f).bar() # Error: the method 'bar' is defined on class Foo, not on the pointer type Foo*, so you need to dereference the pointer first (e.g. by using '->' instead of '.')