Skip to content

Commit f7db381

Browse files
committed
Update tests
1 parent c5cd3ae commit f7db381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/pos-with-compiler/Patterns.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import dotty.tools.dotc.ast.Trees.*
22
import dotty.tools.dotc.core.Types.*
33

44
object Patterns {
5-
val d: Object = null
5+
val d: Object = Object()
66
private def rebase(tp: NamedType): Type = {
77
def rebaseFrom(prefix: Type): Type = ???
88
tp.prefix match {

tests/pos-with-compiler/lazyValsSepComp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import dotty.tools.dotc.core.Contexts.*
1010

1111
/** A test to trigger issue with separate compilation and lazy vals */
1212
object Foo {
13-
val definitions: Definitions = null
13+
val definitions: Definitions = null.asInstanceOf[Definitions]
1414
def defn = definitions
1515
def go = defn.ScalaBoxedClasses
1616
}

0 commit comments

Comments
 (0)