Skip to content

Commit 7d3a006

Browse files
committed
Merge pull request #807 from svalaskevicius/cleanup-code
Cleanup code
2 parents a3cb6b0 + 791253b commit 7d3a006

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ trait Symbols { this: Context =>
4747

4848
// ---- Symbol creation methods ----------------------------------
4949

50-
/** Create a symbol from a function producing its denotation */
51-
def newSymbolDenoting[N <: Name](denotFn: Symbol => SymDenotation, coord: Coord = NoCoord): Symbol { type ThisName = N } = {
52-
val sym = newNakedSymbol[N](coord)
53-
sym.denot = denotFn(sym)
54-
sym
55-
}
56-
5750
/** Create a symbol from its fields (info may be lazy) */
5851
def newSymbol[N <: Name](
5952
owner: Symbol,

test/dotc/tests.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class tests extends CompilerTest {
9393
@Test def pos_packageObj = compileFile(posDir, "i0239", twice)
9494
@Test def pos_anonClassSubtyping = compileFile(posDir, "anonClassSubtyping", twice)
9595
@Test def pos_extmethods = compileFile(posDir, "extmethods", twice)
96+
@Test def pos_companions = compileFile(posDir, "companions", twice)
9697

9798
@Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster
9899

0 commit comments

Comments
 (0)