Skip to content

Instantly share code, notes, and snippets.

@ogirardot
Last active December 12, 2015 00:28

Revisions

  1. ogirardot revised this gist Jan 31, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions trait-conflictor.scala
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    object MyApp extends App {
    val b = B()
    val b = new B()
    }

    trait Conflictor {
    @@ -10,4 +10,4 @@ class A {}

    object A extends Conflictor {}

    case class B extends A with Conflictor {}
    class B extends A with Conflictor {}
  2. ogirardot revised this gist Jan 31, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion trait-conflictor.scala
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ trait Conflictor {
    val log = "reduction"
    }

    abstract sealed class A {}
    class A {}

    object A extends Conflictor {}

  3. ogirardot revised this gist Jan 31, 2013. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions trait-conflictor.scala
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,9 @@

    object MyApp extends App {
    val b = B()
    }

    trait Conflictor {
    val log = this.getClass().getName()
    val log = "reduction"
    }

    abstract sealed class A {}
  4. ogirardot created this gist Jan 31, 2013.
    14 changes: 14 additions & 0 deletions trait-conflictor.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@

    object MyApp extends App {
    val b = B()
    }

    trait Conflictor {
    val log = this.getClass().getName()
    }

    abstract sealed class A {}

    object A extends Conflictor {}

    case class B extends A with Conflictor {}