diff options
author | Paul Phillips <paulp@improving.org> | 2010-05-21 05:39:48 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-05-21 05:39:48 +0000 |
commit | 1a66cb21931f53ab46d1ef21136c30dbfd6977d6 (patch) | |
tree | 54555e9d730f1ea8e01cfd03c41131161c46bbf0 | |
parent | 1fa7a9373acb8aa79f8195ed38e1fb9f75c93768 (diff) | |
download | scala-1a66cb21931f53ab46d1ef21136c30dbfd6977d6.tar.gz scala-1a66cb21931f53ab46d1ef21136c30dbfd6977d6.tar.bz2 scala-1a66cb21931f53ab46d1ef21136c30dbfd6977d6.zip |
Workaround for #3462.
way it was, but this is the obvious fix for now. Review by odersky
(perhaps you could point out where my logic fails, in that I expected
the concrete return type of withHelpSyntax to contain a setter for
value.)
-rw-r--r-- | src/compiler/scala/tools/nsc/settings/AbsSettings.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/AbsSettings.scala b/src/compiler/scala/tools/nsc/settings/AbsSettings.scala index 75e2c5ce11..21608f7f05 100644 --- a/src/compiler/scala/tools/nsc/settings/AbsSettings.scala +++ b/src/compiler/scala/tools/nsc/settings/AbsSettings.scala @@ -69,9 +69,12 @@ trait AbsSettings { * In immutable, of course they will return a new object, which means * we can't use "this.type", at least not in a non-casty manner, which * is unfortunate because we lose type information without it. + * + * ...but now they're this.type because of #3462. The immutable + * side doesn't exist yet anyway. */ - def withAbbreviation(name: String): Setting - def withHelpSyntax(help: String): Setting + def withAbbreviation(name: String): this.type + def withHelpSyntax(help: String): this.type def helpSyntax: String = name def abbreviations: List[String] = Nil |