aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-11-13 14:36:54 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-11-13 14:41:41 -0500
commit8d2566b43440309d6737e1dfefbe0589b4a34017 (patch)
tree3b0ca3379d306c95e89209c7c0ecbc5c9c269bd8 /stage1
parentde12007cc8907d98f183e65f50f2f9b4700894c3 (diff)
downloadcbt-8d2566b43440309d6737e1dfefbe0589b4a34017.tar.gz
cbt-8d2566b43440309d6737e1dfefbe0589b4a34017.tar.bz2
cbt-8d2566b43440309d6737e1dfefbe0589b4a34017.zip
Assert right build class. Fixes #174
Diffstat (limited to 'stage1')
-rw-r--r--stage1/cbt.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/stage1/cbt.scala b/stage1/cbt.scala
index bf82556..6aa73f9 100644
--- a/stage1/cbt.scala
+++ b/stage1/cbt.scala
@@ -8,6 +8,7 @@ object `package`{
implicit class TypeInferenceSafeEquals[T](value: T){
/** if you don't manually upcast, this will catch comparing different types */
def ===(other: T) = value == other
+ def =!=(other: T) = value != other // =!= instead of !==, because it has better precedence
}
val mavenCentral = new URL("https://repo1.maven.org/maven2")