summaryrefslogtreecommitdiff
path: root/test/files/neg/t9847.scala
blob: 51c16d815f3b76ea2318b8a00acb817f8fc525d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
trait T {

  def f(): Unit = 42
  def g = (42: Unit)
  def h = {
    1
  + 1
  }
  def hh(): Unit = {
    1
  + 1
  }
  def i(): Unit = {
    val x = 1
    x + 1
  }
  def x = 42
  def j(): Unit = x + 1

  class C { 42 }
  class D { 42 ; 17 }
}