aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
Diffstat (limited to 'stage1')
-rw-r--r--stage1/cbt.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/stage1/cbt.scala b/stage1/cbt.scala
index c08a5f3..a324d29 100644
--- a/stage1/cbt.scala
+++ b/stage1/cbt.scala
@@ -5,6 +5,11 @@ import java.net._
import java.util.concurrent.ConcurrentHashMap
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
+ }
+
val mavenCentral = new URL("https://repo1.maven.org/maven2")
val jcenter = new URL("https://jcenter.bintray.com")
def bintray(owner: String) = new URL(s"https://dl.bintray.com/$owner/maven") // FIXME: url encode owner