diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-13 14:36:54 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-13 14:41:41 -0500 |
commit | 8d2566b43440309d6737e1dfefbe0589b4a34017 (patch) | |
tree | 3b0ca3379d306c95e89209c7c0ecbc5c9c269bd8 /stage1 | |
parent | de12007cc8907d98f183e65f50f2f9b4700894c3 (diff) | |
download | cbt-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.scala | 1 |
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") |