File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2006,7 +2006,7 @@ object Types {
2006
2006
2007
2007
val idx = typeParams.indexOf(param)
2008
2008
2009
- if (idx < args.length) {
2009
+ if (0 <= idx && idx < args.length) {
2010
2010
val argInfo = args(idx) match {
2011
2011
case arg : TypeBounds =>
2012
2012
val v = param.paramVariance
Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ trait Reporting { this: Context =>
133
133
def error (msg : => Message , pos : SourcePosition = NoSourcePosition , sticky : Boolean = false ): Unit = {
134
134
val fullPos = addInlineds(pos)
135
135
reporter.report(if (sticky) new StickyError (msg, fullPos) else new Error (msg, fullPos))
136
- if (ctx.settings.YdebugError .value)
137
- Thread .dumpStack()
136
+ if ctx.settings.YdebugError .value then Thread .dumpStack()
138
137
}
139
138
140
139
def error (ex : TypeError , pos : SourcePosition ): Unit = {
You can’t perform that action at this time.
0 commit comments