Skip to content

Commit

Permalink
chore(style): fix indent
Browse files Browse the repository at this point in the history
[Cherry-picked 09abbd6]
  • Loading branch information
i10416 authored and WojciechMazur committed Jun 27, 2024
1 parent f20ef43 commit 17b8f6b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions tests/neg/i15784.check
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-- [E006] Not Found Error: tests/neg/i15784.scala:2:26 -----------------------------------------------------------------
2 | case List(_, Rest @ `a`) => Rest // error
| ^^^
| Not found: a
-- [E006] Not Found Error: tests/neg/i15784.scala:2:22 -----------------------------------------------------------------
2 | case List(_, Rest @ `a`) => Rest // error
| ^^^
| Not found: a
|
| longer explanation available when compiling with `-explain`
-- [E006] Not Found Error: tests/neg/i15784.scala:3:26 -----------------------------------------------------------------
3 | case List(_, Rest @ A) => Rest // error
| ^
| Not found: A
-- [E006] Not Found Error: tests/neg/i15784.scala:3:22 -----------------------------------------------------------------
3 | case List(_, Rest @ A) => Rest // error
| ^
| Not found: A
|
| longer explanation available when compiling with `-explain`
6 changes: 3 additions & 3 deletions tests/neg/i15784.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def i15784 = List(42) match
case List(_, Rest @ `a`) => Rest // error
case List(_, Rest @ A) => Rest // error
case _ => ???
case List(_, Rest @ `a`) => Rest // error
case List(_, Rest @ A) => Rest // error
case _ => ???
10 changes: 5 additions & 5 deletions tests/pos/i15784.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def i15784 = List(42) match
case List(_, rest @ _*) => rest
case List(_, Rest @ _*) => Rest
case List(_, `Rest` @ _*) => Rest
case _ => ???
case List(_, rest @ _*) => rest
case List(_, Rest @ _*) => Rest
case List(_, `Rest` @ _*) => Rest
case _ => ???

def i15784_auxiliary = 42 match
case `type` : Int => `type`
case `type` : Int => `type`

0 comments on commit 17b8f6b

Please sign in to comment.