Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created April 16, 2014 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeno-by/10892965 to your computer and use it in GitHub Desktop.
Save xeno-by/10892965 to your computer and use it in GitHub Desktop.
17:19 ~/Projects/Master/sandbox (master)$ st
[[syntax trees at end of typer]] // Test.scala
package <empty> {
abstract trait B extends scala.AnyRef;
class C1 extends scala.AnyRef {
def <init>(): C1 = {
C1.super.<init>();
()
};
scala.this.Predef.println(this)
};
class C2 extends scala.AnyRef { x$1: C2 with B =>
def <init>(): C2 = {
C2.super.<init>();
()
};
scala.this.Predef.println(this)
};
class C3 extends scala.AnyRef { `this`: C3 with B =>
def <init>(): C3 = {
C3.super.<init>();
()
};
scala.this.Predef.println(this)
}
}
17:20 ~/Projects/Master/sandbox (master)$
@xeno-by
Copy link
Author

xeno-by commented Apr 16, 2014

17:20 ~/Projects/Master/sandbox (master)$ st
[[syntax trees at end of typer]] // Test.scala
package {
abstract trait B extends scala.AnyRef;
class C1 extends scala.AnyRef {
def (): C1 = {
C1.super.();
()
};
private[this] val x1: C1 = this;
def x1: C1 = C1.this.x1
};
class C2 extends scala.AnyRef { x$1: C2 with B =>
def (): C2 = {
C2.super.();
()
};
private[this] val x2: C2 with B = this;
def x2: C2 with B = C2.this.x2
};
class C3 extends scala.AnyRef { this: C3 with B =>
def (): C3 = {
C3.super.();
()
};
private[this] val x3: C3 with B = this;
def x3: C3 with B = C3.this.x3
}
}

17:20 ~/Projects/Master/sandbox (master)$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment