File tree 1 file changed +0
-13
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -248,19 +248,6 @@ object Types {
248
248
val d = defn
249
249
hasClassSymbol(d.NothingClass ) || hasClassSymbol(d.NullClass )
250
250
251
- /** Does this type refer exactly to class symbol `sym`, instead of to a subclass of `sym`?
252
- * Implemented like `isRef`, but follows more types: all type proxies as well as and- and or-types
253
- */
254
- private [Types ] def isTightPrefix (sym : Symbol )(using Context ): Boolean = stripTypeVar match {
255
- case tp : NamedType => tp.info.isTightPrefix(sym)
256
- case tp : ClassInfo => tp.cls eq sym
257
- case tp : Types .ThisType => tp.cls eq sym
258
- case tp : TypeProxy => tp.superType.isTightPrefix(sym)
259
- case tp : AndType => tp.tp1.isTightPrefix(sym) && tp.tp2.isTightPrefix(sym)
260
- case tp : OrType => tp.tp1.isTightPrefix(sym) || tp.tp2.isTightPrefix(sym)
261
- case _ => false
262
- }
263
-
264
251
/** True if this type is an instance of the given `cls` or an instance of
265
252
* a non-bottom subclass of `cls`.
266
253
*/
You can’t perform that action at this time.
0 commit comments