aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i50-volatile.scala
diff options
context:
space:
mode:
authorvsalvis <salvisbergvera@gmail.com>2015-07-10 17:01:35 +0200
committerVladimirNik <vladimir.nikolaev9@gmail.com>2016-02-18 17:54:45 +0100
commit1ed38673d4c88d573363459d316fdfe275d05025 (patch)
tree6ae87391dab765853b97c81dfa4f05bbba2e527b /tests/neg/i50-volatile.scala
parent4be70a5a8469c1355c84bef70936a81f899a9678 (diff)
downloaddotty-1ed38673d4c88d573363459d316fdfe275d05025.tar.gz
dotty-1ed38673d4c88d573363459d316fdfe275d05025.tar.bz2
dotty-1ed38673d4c88d573363459d316fdfe275d05025.zip
Negtests with // error comments
Diffstat (limited to 'tests/neg/i50-volatile.scala')
-rw-r--r--tests/neg/i50-volatile.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/neg/i50-volatile.scala b/tests/neg/i50-volatile.scala
index 9098b47d6..434dbf48c 100644
--- a/tests/neg/i50-volatile.scala
+++ b/tests/neg/i50-volatile.scala
@@ -3,22 +3,22 @@ class Test {
class Inner
}
type A <: Base {
- type X = String
+ type X = String // error
}
type B <: {
- type X = Int
+ type X = Int // error
}
lazy val o: A & B = ???
- class Client extends o.Inner
+ class Client extends o.Inner // error // error
- def xToString(x: o.X): String = x
+ def xToString(x: o.X): String = x // error
def intToString(i: Int): String = xToString(i)
}
object Test2 {
- import Test.o._
+ import Test.o._ // error
def xToString(x: X): String = x