diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/annotDepMethType.flags | 1 | ||||
-rw-r--r-- | test/files/pos/annotDepMethType.scala | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/annotDepMethType.flags b/test/files/pos/annotDepMethType.flags new file mode 100644 index 0000000000..e1b37447c9 --- /dev/null +++ b/test/files/pos/annotDepMethType.flags @@ -0,0 +1 @@ +-Xexperimental
\ No newline at end of file diff --git a/test/files/pos/annotDepMethType.scala b/test/files/pos/annotDepMethType.scala new file mode 100644 index 0000000000..b5e7cb9e8b --- /dev/null +++ b/test/files/pos/annotDepMethType.scala @@ -0,0 +1,7 @@ +case class pc(calls: Any*) extends TypeConstraint + +object Main { + class C0 { def baz: String = "" } + class C1 { def bar(c0: C0): String @pc(c0.baz) = c0.baz } + def trans(c1: C1): String @pc(c1.bar(throw new Error())) = c1.bar(new C0) +} |