forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only lift inner expressions when lifting repeated
Typed
arguments (s…
…cala#18424) closes lampepfl#18233
- Loading branch information
Showing
7 changed files
with
781 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
tests/run/i16940.scala → tests/coverage/run/i16940/i16940.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,343 @@ | ||
# Coverage data, format version: 3.0 | ||
# Statement data: | ||
# - id | ||
# - source path | ||
# - package name | ||
# - class name | ||
# - class type (Class, Object or Trait) | ||
# - full class name | ||
# - method name | ||
# - start offset | ||
# - end offset | ||
# - line number | ||
# - symbol name | ||
# - tree name | ||
# - is branch | ||
# - invocations count | ||
# - is ignored | ||
# - description (can be multi-line) | ||
# '' sign | ||
# ------------------------------------------ | ||
0 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
353 | ||
552 | ||
18 | ||
result | ||
Apply | ||
false | ||
0 | ||
false | ||
Await.result(\n Future.sequence(Seq(brokenSynchronizedBlock(false), brokenSynchronizedBlock(true)))\n .map { result =>\n println(test)\n assert(test == 2)\n },\n 3.seconds\n ) | ||
|
||
1 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
371 | ||
533 | ||
19 | ||
map | ||
Apply | ||
false | ||
0 | ||
false | ||
Future.sequence(Seq(brokenSynchronizedBlock(false), brokenSynchronizedBlock(true)))\n .map { result =>\n println(test)\n assert(test == 2)\n } | ||
|
||
2 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
371 | ||
454 | ||
19 | ||
sequence | ||
Apply | ||
false | ||
0 | ||
false | ||
Future.sequence(Seq(brokenSynchronizedBlock(false), brokenSynchronizedBlock(true))) | ||
|
||
3 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
387 | ||
453 | ||
19 | ||
apply | ||
Apply | ||
false | ||
0 | ||
false | ||
Seq(brokenSynchronizedBlock(false), brokenSynchronizedBlock(true)) | ||
|
||
4 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
387 | ||
390 | ||
19 | ||
Seq | ||
Ident | ||
false | ||
0 | ||
false | ||
Seq | ||
|
||
5 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
391 | ||
421 | ||
19 | ||
brokenSynchronizedBlock | ||
Apply | ||
false | ||
0 | ||
false | ||
brokenSynchronizedBlock(false) | ||
|
||
6 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
423 | ||
452 | ||
19 | ||
brokenSynchronizedBlock | ||
Apply | ||
false | ||
0 | ||
false | ||
brokenSynchronizedBlock(true) | ||
|
||
7 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
$anonfun | ||
486 | ||
499 | ||
21 | ||
println | ||
Apply | ||
false | ||
0 | ||
false | ||
println(test) | ||
|
||
8 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
$anonfun | ||
508 | ||
525 | ||
22 | ||
assertFailed | ||
Apply | ||
false | ||
0 | ||
false | ||
assert(test == 2) | ||
|
||
9 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
$anonfun | ||
508 | ||
525 | ||
22 | ||
assertFailed | ||
Apply | ||
true | ||
0 | ||
false | ||
assert(test == 2) | ||
|
||
10 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
$anonfun | ||
508 | ||
525 | ||
22 | ||
<none> | ||
Literal | ||
true | ||
0 | ||
false | ||
assert(test == 2) | ||
|
||
11 | ||
i16940/i16940.scala | ||
<empty> | ||
Test$ | ||
Object | ||
<empty>.Test$ | ||
<init> | ||
539 | ||
548 | ||
24 | ||
seconds | ||
Select | ||
false | ||
0 | ||
false | ||
3.seconds | ||
|
||
12 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
189 | ||
323 | ||
6 | ||
apply | ||
Apply | ||
false | ||
0 | ||
false | ||
Future {\n if (option) {\n Thread.sleep(500)\n }\n synchronized {\n val tmp = test\n Thread.sleep(1000)\n test = tmp + 1\n }\n} | ||
|
||
13 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
218 | ||
235 | ||
8 | ||
sleep | ||
Apply | ||
false | ||
0 | ||
false | ||
Thread.sleep(500) | ||
|
||
14 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
212 | ||
239 | ||
7 | ||
<none> | ||
Block | ||
true | ||
0 | ||
false | ||
{\n Thread.sleep(500)\n } | ||
|
||
15 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
239 | ||
239 | ||
9 | ||
<none> | ||
Literal | ||
true | ||
0 | ||
false | ||
|
||
|
||
16 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
242 | ||
321 | ||
10 | ||
synchronized | ||
Apply | ||
false | ||
0 | ||
false | ||
synchronized {\n val tmp = test\n Thread.sleep(1000)\n test = tmp + 1\n } | ||
|
||
17 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
280 | ||
298 | ||
12 | ||
sleep | ||
Apply | ||
false | ||
0 | ||
false | ||
Thread.sleep(1000) | ||
|
||
18 | ||
i16940/i16940.scala | ||
<empty> | ||
i16940$package$ | ||
Object | ||
<empty>.i16940$package$ | ||
brokenSynchronizedBlock | ||
128 | ||
155 | ||
6 | ||
brokenSynchronizedBlock | ||
DefDef | ||
false | ||
0 | ||
false | ||
def brokenSynchronizedBlock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
def aList = | ||
List(Array[String]()*) | ||
|
||
def arr = | ||
Array("abc", "def") | ||
|
||
def anotherList = | ||
List(arr*) | ||
|
||
object Test extends App { | ||
println(aList) | ||
println(anotherList) | ||
} |
Oops, something went wrong.