diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-03 20:44:27 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-03 20:45:09 +0200 |
commit | 168e4f18f0b2f8ac0e3d7ef5128797303dec6a44 (patch) | |
tree | d07dbc2cd645e56784cf5c2b830508724761fc8c /src/dotty/tools/dotc/core | |
parent | 2020938a77590f8c461041707716eca228f647d2 (diff) | |
download | dotty-168e4f18f0b2f8ac0e3d7ef5128797303dec6a44.tar.gz dotty-168e4f18f0b2f8ac0e3d7ef5128797303dec6a44.tar.bz2 dotty-168e4f18f0b2f8ac0e3d7ef5128797303dec6a44.zip |
Added version settings -migration, -source
Diffstat (limited to 'src/dotty/tools/dotc/core')
-rw-r--r-- | src/dotty/tools/dotc/core/Definitions.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Definitions.scala b/src/dotty/tools/dotc/core/Definitions.scala index 286d1437f..f20882ce4 100644 --- a/src/dotty/tools/dotc/core/Definitions.scala +++ b/src/dotty/tools/dotc/core/Definitions.scala @@ -107,6 +107,10 @@ class Definitions { lazy val JavaPackageVal = ctx.requiredPackage("java") lazy val JavaLangPackageVal = ctx.requiredPackage("java.lang") + // fundamental modules + lazy val SysPackage = ctx.requiredModule("scala.sys.package") + def Sys_error = ctx.requiredMethod(SysPackage.moduleClass.asClass, nme.error) + /** Note: We cannot have same named methods defined in Object and Any (and AnyVal, for that matter) * because after erasure the Any and AnyVal references get remapped to the Object methods * which would result in a double binding assertion failure. @@ -292,6 +296,7 @@ class Definitions { lazy val ScalaSignatureAnnot = ctx.requiredClass("scala.reflect.ScalaSignature") lazy val ScalaLongSignatureAnnot = ctx.requiredClass("scala.reflect.ScalaLongSignature") lazy val DeprecatedAnnot = ctx.requiredClass("scala.deprecated") + lazy val MigrationAnnot = ctx.requiredClass("scala.migration") lazy val AnnotationDefaultAnnot = ctx.requiredClass("dotty.annotation.internal.AnnotationDefault") lazy val ThrowsAnnot = ctx.requiredClass("scala.throws") lazy val UncheckedAnnot = ctx.requiredClass("scala.unchecked") |