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
@@ -12,16 +12,16 @@ fun foo() {
"after"
}
---------------------
"before" <v0> NEW()
1 <v1> NEW()
object { { val x = 1 } fun foo() { val a = 2 } } <v2> NEW()
"after" <v3> NEW()
{ "before" val bar = object { { val x = 1 } fun foo() { val a = 2 } } "after" } <v3> COPY
"before" <v0>: * NEW()
1 <v1>: Int NEW()
object { { val x = 1 } fun foo() { val a = 2 } } <v2>: <no name provided> NEW()
"after" <v3>: * NEW()
{ "before" val bar = object { { val x = 1 } fun foo() { val a = 2 } } "after" } <v3>: * COPY
=====================
== foo ==
fun foo() {
val a = 2
}
---------------------
2 <v0> NEW()
2 <v0>: Int NEW()
=====================