Skip to content

Commit e73ff2c

Browse files
authored
Fix REPL interrupt instrumentation conditional (#24837)
Fixes a regression in #24514, which occurred in 3.8.0-RC3. We mixed up the double-negative when porting the conditional from a string-equality-check to the `setting.is`-check
1 parent 0dc10e0 commit e73ff2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

repl/src/dotty/tools/repl/AbstractFileClassLoader.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class AbstractFileClassLoader(root: AbstractFile, parent: ClassLoader, interrupt
5959

6060
val bytes = file.toByteArray
6161

62-
if !interruptInstrumentation.is(InterruptInstrumentation.Enabled) then defineClassInstrumented(name, bytes)
62+
63+
if interruptInstrumentation.is(InterruptInstrumentation.Enabled) then defineClassInstrumented(name, bytes)
6364
else defineClass(name, bytes, 0, bytes.length)
6465
}
6566

0 commit comments

Comments
 (0)