aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Definitions.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-01-31 17:45:09 +1100
committerMartin Odersky <odersky@gmail.com>2017-01-31 17:45:19 +1100
commit62810e0ba681224c8288470a27e816b05769f01a (patch)
treee138034f9b140f83a58ea5cdc690f2ad92aef5b9 /compiler/src/dotty/tools/dotc/core/Definitions.scala
parentd087448fdffff8f64a23d9db39445455cddc2fc6 (diff)
downloaddotty-62810e0ba681224c8288470a27e816b05769f01a.tar.gz
dotty-62810e0ba681224c8288470a27e816b05769f01a.tar.bz2
dotty-62810e0ba681224c8288470a27e816b05769f01a.zip
Fix #1915 Synthetic function traits need NoInits flag
Fixes #1915.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Definitions.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala
index 0aeb28d36..461773295 100644
--- a/compiler/src/dotty/tools/dotc/core/Definitions.scala
+++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -130,7 +130,7 @@ class Definitions {
ClassInfo(ScalaPackageClass.thisType, cls, ObjectType :: parentTraits, decls)
}
}
- newClassSymbol(ScalaPackageClass, name, Trait, completer)
+ newClassSymbol(ScalaPackageClass, name, Trait | NoInits, completer)
}
private def newMethod(cls: ClassSymbol, name: TermName, info: Type, flags: FlagSet = EmptyFlags): TermSymbol =