summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Settings.scala
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-01-23 15:34:40 +0000
committerLex Spoon <lex@lexspoon.org>2007-01-23 15:34:40 +0000
commit8acb41bd0a4dc1a6a6e6c20f48cb1c508470551a (patch)
treea65ac192ef81ab0e068e4891654511d5f0ff4982 /src/compiler/scala/tools/nsc/Settings.scala
parent76d0d7ad84a236a5b2fb52e83af158b25b817a85 (diff)
downloadscala-8acb41bd0a4dc1a6a6e6c20f48cb1c508470551a.tar.gz
scala-8acb41bd0a4dc1a6a6e6c20f48cb1c508470551a.tar.bz2
scala-8acb41bd0a4dc1a6a6e6c20f48cb1c508470551a.zip
- Added default constructors for Settings and G...
- Added default constructors for Settings and Global - Added attributed types, if -Xplugtypes is available. This enables non-LAMP people to experiment with type attributes. (This is a merge from the plugtypes branch, revision 9679) The attributes are ignored for now, even with -Xplugtypes, but do get propagated.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Settings.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Settings.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Settings.scala b/src/compiler/scala/tools/nsc/Settings.scala
index 16f7acfe45..bde12d3be0 100644
--- a/src/compiler/scala/tools/nsc/Settings.scala
+++ b/src/compiler/scala/tools/nsc/Settings.scala
@@ -10,6 +10,7 @@ import java.lang.System
import java.io.File
class Settings(error: String => unit) {
+ def this() = this(Console.println)
private var allsettings: List[Setting] = List()
@@ -131,6 +132,7 @@ class Settings(error: String => unit) {
val Xunapply = BooleanSetting("-Xunapply", "enable unapply pattern matching")
Xunapply.value = true
val Xplugtypes = BooleanSetting("-Xplugtypes", "parse but ignore annotations in more locations")
+ //Xplugtypes.value = true // just while experimenting
val Xkilloption = BooleanSetting("-Xkilloption", "optimizes option types")
val XprintOuterMatches = BooleanSetting("-XprintOuterMatches", "prints outer-checks caused by pattern matching")