aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1653.scala
blob: f21fc7d54d96786cf1e189f0d7086c7b72611854 (plain) (blame)
1
2
3
trait Foo {
  def foo() = new Unit with Foo  // error: cannot extend final class Unit  // error: illegal trait inheritance
}