diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-28 09:46:15 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-28 09:46:15 +0100 |
commit | 955eb2170e1291500813e6bec76a9f0e1e3bad50 (patch) | |
tree | 09676def1c96e80a962728711c4c1ab4fb1732d4 /test/junit | |
parent | c505b6c4522166dde936f2b6ba6d42c15874ae41 (diff) | |
parent | d4546fd74f94c653200200ef09cbbf2e1a808668 (diff) | |
download | scala-955eb2170e1291500813e6bec76a9f0e1e3bad50.tar.gz scala-955eb2170e1291500813e6bec76a9f0e1e3bad50.tar.bz2 scala-955eb2170e1291500813e6bec76a9f0e1e3bad50.zip |
Merge pull request #4318 from soc/topic/remove-deprecation-warnings
Remove deprecation warnings
Diffstat (limited to 'test/junit')
-rw-r--r-- | test/junit/scala/tools/nsc/symtab/SymbolTableTest.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/junit/scala/tools/nsc/symtab/SymbolTableTest.scala b/test/junit/scala/tools/nsc/symtab/SymbolTableTest.scala index 895ad9d683..5a921a5eda 100644 --- a/test/junit/scala/tools/nsc/symtab/SymbolTableTest.scala +++ b/test/junit/scala/tools/nsc/symtab/SymbolTableTest.scala @@ -33,10 +33,10 @@ class SymbolTableTest { import symbolTable._ symbolTable.definitions.init() val rootClass = symbolTable.rootMirror.RootClass - val fooSymbol = rootClass.newClassSymbol("Foo": TypeName, NoPosition, 0) + val fooSymbol = rootClass.newClassSymbol(TypeName("Foo"), NoPosition, 0) val fooType = new ClassInfoType(Nil, EmptyScope, fooSymbol) fooSymbol.info = fooType - val barSymbol = rootClass.newClassSymbol("Bar": TypeName, NoPosition, 0) + val barSymbol = rootClass.newClassSymbol(TypeName("Bar"), NoPosition, 0) val fooTypeRef = TypeRef(fooSymbol.owner.tpe, fooSymbol, Nil) val barType = new ClassInfoType(List(fooTypeRef), EmptyScope, barSymbol) barSymbol.info = barType |