diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index 2b4f806dd3ee..100f87a54fda 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -47,13 +47,6 @@ trait Symbols { this: Context => // ---- Symbol creation methods ---------------------------------- - /** Create a symbol from a function producing its denotation */ - def newSymbolDenoting[N <: Name](denotFn: Symbol => SymDenotation, coord: Coord = NoCoord): Symbol { type ThisName = N } = { - val sym = newNakedSymbol[N](coord) - sym.denot = denotFn(sym) - sym - } - /** Create a symbol from its fields (info may be lazy) */ def newSymbol[N <: Name]( owner: Symbol, diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index b8423db38969..403a99a190b3 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -93,6 +93,7 @@ class tests extends CompilerTest { @Test def pos_packageObj = compileFile(posDir, "i0239", twice) @Test def pos_anonClassSubtyping = compileFile(posDir, "anonClassSubtyping", twice) @Test def pos_extmethods = compileFile(posDir, "extmethods", twice) + @Test def pos_companions = compileFile(posDir, "companions", twice) @Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster