summaryrefslogblamecommitdiff
path: root/test/files/neg/forward.scala
blob: b7f7a50583cf574da802022e816f91838b1996af (plain) (tree)



















                   
                           


                   
object Test {
  def f: int = x;
  val x: int = f;

  {
    def f: int = x;
    val x: int = f;
  }
  {
    def f: int = g;
    val x: int = f;
    def g: int = x;
  }
  {
    def f: int = g;
    var x: int = f;
    def g: int = x;
  }
  {
    def f: int = g;
    Console.println("foo");
    def g: int = f;
  }
}