aboutsummaryrefslogtreecommitdiff
path: root/stage1/cbt.scala
diff options
context:
space:
mode:
Diffstat (limited to 'stage1/cbt.scala')
-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")