summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test.cpp1
-rw-r--r--src/typing.ml1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/test.cpp b/src/test.cpp
deleted file mode 100644
index 81373c8..0000000
--- a/src/test.cpp
+++ /dev/null
@@ -1 +0,0 @@
-int m() { return 1==2 && 3==4 || !(5>=6); }
diff --git a/src/typing.ml b/src/typing.ml
index 353c1ad..7a76b69 100644
--- a/src/typing.ml
+++ b/src/typing.ml
@@ -175,6 +175,7 @@ let rec subtype env a b = match a, b with
| T_Int, T_Int -> true
| T_Void, T_Void -> true
| Typenull, TPoint(_) -> true
+ | TPoint(TPoint(TClass(_))), TPoint(TPoint(_)) -> false
| TPoint(ka), TPoint(kb) -> subtype env ka kb
| TClass(i), TClass(j) ->
let c = get_c env i in