aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/zoo.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/zoo.scala
parent4be70a5a8469c1355c84bef70936a81f899a9678 (diff)
downloaddotty-1ed38673d4c88d573363459d316fdfe275d05025.tar.gz
dotty-1ed38673d4c88d573363459d316fdfe275d05025.tar.bz2
dotty-1ed38673d4c88d573363459d316fdfe275d05025.zip
Negtests with // error comments
Diffstat (limited to 'tests/neg/zoo.scala')
-rw-r--r--tests/neg/zoo.scala24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/neg/zoo.scala b/tests/neg/zoo.scala
index 6a3e4ca0b..3d9b77b72 100644
--- a/tests/neg/zoo.scala
+++ b/tests/neg/zoo.scala
@@ -1,25 +1,25 @@
object Test {
type Meat = {
- type IsMeat = Any
+ type IsMeat = Any // error
}
type Grass = {
- type IsGrass = Any
+ type IsGrass = Any // error
}
type Animal = {
- type Food
- def eats(food: Food): Unit
- def gets: Food
+ type Food // error
+ def eats(food: Food): Unit // error
+ def gets: Food // error
}
type Cow = {
- type IsMeat = Any
- type Food <: Grass
- def eats(food: Grass): Unit
- def gets: Grass
+ type IsMeat = Any // error
+ type Food <: Grass // error
+ def eats(food: Grass): Unit // error
+ def gets: Grass // error
}
type Lion = {
- type Food = Meat
- def eats(food: Meat): Unit
- def gets: Meat
+ type Food = Meat // error
+ def eats(food: Meat): Unit // error
+ def gets: Meat // error
}
def newMeat: Meat = new {
type IsMeat = Any