aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1237.scala
blob: 31ba2966aadc1457415077fffd1daf78e739cdc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class HelloWorld {
  def main(args: Array[String]): Unit = {

    object TypeBool;

    trait Fct {
      def g(x : Int) = TypeBool // breaks.

      //    def g(x : Int) = 3 // fine.
    }

    ()
  }
}