Pseudocode: Implement computation of expected type predicates

This commit is contained in:
Alexey Sedunov
2014-06-23 14:02:22 +04:00
parent 50228fa085
commit 5e2c2b4eca
87 changed files with 1154 additions and 803 deletions
@@ -0,0 +1,26 @@
== Bar ==
class Bar {
}
---------------------
=====================
== Foo ==
class Foo() {
fun Bar.invoke() {}
}
---------------------
=====================
== invoke ==
fun Bar.invoke() {}
---------------------
=====================
== foobar ==
fun foobar(f: Foo) {
Bar().f()
}
---------------------
Bar() <v2>: Bar NEW()
f <v1>: Foo NEW()
f() <v3>: * NEW(<v1>, <v2>)
Bar().f() <v3>: * COPY
{ Bar().f() } <v3>: * COPY
=====================