aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1540b.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-14 22:21:51 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-14 23:27:05 +0100
commit9bf58090c704a59d8735874c565200758bcea666 (patch)
tree705c77dc8cea85ecf0203ea710957542541c4bb5 /tests/pos/i1540b.scala
parentba06bf06721f1a8de7d68d22ad7eba27fff90c43 (diff)
downloaddotty-9bf58090c704a59d8735874c565200758bcea666.tar.gz
dotty-9bf58090c704a59d8735874c565200758bcea666.tar.bz2
dotty-9bf58090c704a59d8735874c565200758bcea666.zip
Change by-name pattern matching.
New implementation following the scheme outlined in #1790.
Diffstat (limited to 'tests/pos/i1540b.scala')
-rw-r--r--tests/pos/i1540b.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pos/i1540b.scala b/tests/pos/i1540b.scala
index 2b4c5408e..f4408b0c7 100644
--- a/tests/pos/i1540b.scala
+++ b/tests/pos/i1540b.scala
@@ -1,6 +1,6 @@
class Casey1[T](val a: T) {
- def isDefined: Boolean = true
- def isDefined(x: T): Boolean = ???
+ def isEmpty: Boolean = false
+ def isEmpty(x: T): Boolean = ???
def get: T = a
def get(x: T): String = ???
}