aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/ensuring.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-09-05 02:56:06 +0200
committerMartin Odersky <odersky@gmail.com>2014-09-05 02:57:00 +0200
commitdc02760eac04accb9e0d5e34128f4c79cfa8c327 (patch)
tree1b048975e008a02ca7832a93cff2c987981a2cbb /tests/pending/pos/ensuring.scala
parent652a7e5d5a1db429a7270049d51ca63f494ee64b (diff)
downloaddotty-dc02760eac04accb9e0d5e34128f4c79cfa8c327.tar.gz
dotty-dc02760eac04accb9e0d5e34128f4c79cfa8c327.tar.bz2
dotty-dc02760eac04accb9e0d5e34128f4c79cfa8c327.zip
Partially reverting of 08c6eaca
Partial revert of 08c6eaca "this type is a term ref to the source module". The problem with doing this is that it introduces spurious outer references. An inner module that contains self referenves always needs the directly enclosing class. The revert avoids this dependency by making ThisTypes always point to TypeRefs. Several other changes were necessary to make the builds pass: TypeRefs had to get prefixes after erasure so that they can be reloaded. Symbols of such typerefs had to be retrieved without forcing a denotation. One test (blockescapes.scala) fails and is moved to pending, awaiting further resolution. Also two other new tests in pending which currently fail (and have failed before).
Diffstat (limited to 'tests/pending/pos/ensuring.scala')
-rw-r--r--tests/pending/pos/ensuring.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pending/pos/ensuring.scala b/tests/pending/pos/ensuring.scala
new file mode 100644
index 000000000..7014d3567
--- /dev/null
+++ b/tests/pending/pos/ensuring.scala
@@ -0,0 +1,5 @@
+object test {
+
+ def foo(x: Int) = x + 1 ensuring { y => y >= 0 }
+
+}