You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Order is not deterministic so we enforce lexicographic order between the duplicates for error-reporting
174
+
val (cl1, cl2) =
175
+
if (classSymbol.effectiveName.toString < dupClassSym.effectiveName.toString) (classSymbol, dupClassSym)
176
+
else (dupClassSym, classSymbol)
177
+
ctx.atPhase(ctx.typerPhase) { implicit ctx =>
178
+
ctx.warning(s"${cl1.show} differs only in case from ${cl2.showLocated}. "+
179
+
"Such classes will overwrite one another on case-insensitive filesystems.", cl1.pos)
180
+
}
181
+
}
182
+
}
167
183
168
184
defrun():Unit= {
169
185
while (true) {
@@ -193,30 +209,6 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
193
209
valItem1(arrivalPos, cd, cunit) = item
194
210
valclaszSymbol= cd.symbol
195
211
196
-
// GenASM checks this before classfiles are emitted, https://github.com/scala/scala/commit/e4d1d930693ac75d8eb64c2c3c69f2fc22bec739
0 commit comments