class HelloWorld { def main(args: Array[String]): Unit = { object TypeBool; class Fct { def g(x : Int) = TypeBool } trait Fct2 { def g(x : Int) = TypeBool } } }