summaryrefslogblamecommitdiff
path: root/test/files/neg/forward.scala
blob: 5e21e4c1fe6efef05732856d91e50ef08d1e3bc3 (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;
    System.out.println("foo");
    def g: int = f;
  }
}