Skip to content

Commit

Permalink
#35 fixed classname clash
Browse files Browse the repository at this point in the history
  • Loading branch information
timowest committed Feb 26, 2012
1 parent 0597a22 commit 358f192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scalagen/src/main/scala/com/mysema/scalagen/Primitives.scala
Expand Up @@ -34,8 +34,8 @@ class Primitives extends UnitTransformerBase {
}

override def visit(n: FieldAccess, arg: CompilationUnit): Node = n match {
case Field(str("Boolean"), "TRUE") => TRUE
case Field(str("Boolean"), "FALSE") => FALSE
case FieldAccess(str("Boolean"), "TRUE") => TRUE
case FieldAccess(str("Boolean"), "FALSE") => FALSE
case _ => super.visit(n, arg)
}

Expand Down
4 changes: 2 additions & 2 deletions scalagen/src/main/scala/com/mysema/scalagen/Types.scala
Expand Up @@ -71,7 +71,7 @@ trait Types {

object field {
def unapply(f: Expression) = f match {
case Field(str("this"), field) => Some(field)
case FieldAccess(str("this"), field) => Some(field)
case Name(field) => Some(field)
case _ => None
}
Expand Down Expand Up @@ -132,7 +132,7 @@ trait Types {
def unapply(e: Enclosed) = Some(e.getInner)
}

object Field {
object FieldAccess {
def unapply(f: FieldAccess) = Some(f.getScope, f.getField)
}

Expand Down

0 comments on commit 358f192

Please sign in to comment.