Skip to content

Commit 04989b1

Browse files
committed
Adapt tests
1 parent 1f4e3e6 commit 04989b1

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,9 @@ community-build/sbt-scalajs-sbt
8989
*.check.out
9090
!/dist/bin/
9191

92+
# semanticdb test output files
93+
*.expect.scala.out
94+
*.expect.out
95+
9296
# Bloop
9397
.bsp

compiler/test-resources/repl/i5218

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ val tuple: (Int, String, Long) = (1,2,3)
33
scala> 0.0 *: tuple
44
val res0: (Double, Int, String, Long) = (0.0,1,2,3)
55
scala> tuple ++ tuple
6-
val res1: Int *: String *: Long *: tuple.type = (1,2,3,1,2,3)
6+
val res1: Int *: scala.Tuple.Concat[(String, Long), tuple.type] = (1,2,3,1,2,3)

tests/semanticdb/expect/recursion.expect.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package recursion
33

44
object Nats/*<-recursion::Nats.*/ {
55
sealed trait Nat/*<-recursion::Nats.Nat#*/ {
6-
inline def ++/*<-recursion::Nats.Nat#`++`().*/ : Succ/*->recursion::Nats.Succ#*/[this.type] = Succ/*->recursion::Nats.Succ.*//*->recursion::Nats.Succ.apply().*/(this)
6+
transparent inline def ++/*<-recursion::Nats.Nat#`++`().*/ : Succ/*->recursion::Nats.Succ#*/[this.type] = Succ/*->recursion::Nats.Succ.*//*->recursion::Nats.Succ.apply().*/(this)
77

88
transparent inline def +/*<-recursion::Nats.Nat#`+`().*/(inline that/*<-recursion::Nats.Nat#`+`().(that)*/: Nat/*->recursion::Nats.Nat#*/): Nat/*->recursion::Nats.Nat#*/ =
99
inline this match {

tests/semanticdb/expect/recursion.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package recursion
33

44
object Nats {
55
sealed trait Nat {
6-
inline def ++ : Succ[this.type] = Succ(this)
6+
transparent inline def ++ : Succ[this.type] = Succ(this)
77

88
transparent inline def +(inline that: Nat): Nat =
99
inline this match {

tests/semanticdb/metac.expect

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3309,10 +3309,10 @@ Occurrences:
33093309
[3:7..3:11): Nats <- recursion/Nats.
33103310
[4:15..4:18): Nat <- recursion/Nats.Nat#
33113311
[5:4..5:4): <- recursion/Nats.Nat#`<init>`().
3312-
[5:15..5:17): ++ <- recursion/Nats.Nat#`++`().
3313-
[5:20..5:24): Succ -> recursion/Nats.Succ#
3314-
[5:38..5:42): Succ -> recursion/Nats.Succ.
3315-
[5:42..5:42): -> recursion/Nats.Succ.apply().
3312+
[5:27..5:29): ++ <- recursion/Nats.Nat#`++`().
3313+
[5:32..5:36): Succ -> recursion/Nats.Succ#
3314+
[5:50..5:54): Succ -> recursion/Nats.Succ.
3315+
[5:54..5:54): -> recursion/Nats.Succ.apply().
33163316
[7:27..7:28): + <- recursion/Nats.Nat#`+`().
33173317
[7:36..7:40): that <- recursion/Nats.Nat#`+`().(that)
33183318
[7:42..7:45): Nat -> recursion/Nats.Nat#

0 commit comments

Comments
 (0)