File tree 3 files changed +10
-9
lines changed
src/main/dotty/tools/pc/printer
test/dotty/tools/pc/tests/completion
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -527,7 +527,8 @@ class ShortenedTypePrinter(
527
527
else if includeDefaultParam == ShortenedTypePrinter .IncludeDefaultParam .ResolveLater && isDefaultParam
528
528
then " = ..."
529
529
else " " // includeDefaultParam == Never or !isDefaultParam
530
- s " $keywordName: ${paramTypeString}$default"
530
+ val inline = if (param.is(Flags .Inline )) " inline " else " "
531
+ s " $inline$keywordName: ${paramTypeString}$default"
531
532
end if
532
533
end paramLabel
533
534
Original file line number Diff line number Diff line change @@ -796,7 +796,7 @@ class CompletionArgSuite extends BaseCompletionSuite:
796
796
| def k: Int = m(1, a@@)
797
797
|""" .stripMargin,
798
798
""" |aaa = : Int
799
- |assert(assertion: Boolean): Unit
799
+ |assert(inline assertion: Boolean): Unit
800
800
|""" .stripMargin,
801
801
topLines = Some (2 ),
802
802
)
@@ -810,7 +810,7 @@ class CompletionArgSuite extends BaseCompletionSuite:
810
810
| def k: Int = m(inn = 1, a@@)
811
811
|""" .stripMargin,
812
812
""" |aaa = : Int
813
- |assert(assertion: Boolean): Unit
813
+ |assert(inline assertion: Boolean): Unit
814
814
|""" .stripMargin,
815
815
topLines = Some (2 ),
816
816
)
@@ -912,7 +912,7 @@ class CompletionArgSuite extends BaseCompletionSuite:
912
912
|""" .stripMargin,
913
913
""" |aaa = : Int
914
914
|abb = : Option[Int]
915
- |assert(assertion: Boolean): Unit
915
+ |assert(inline assertion: Boolean): Unit
916
916
|""" .stripMargin,
917
917
topLines = Some (3 ),
918
918
)
@@ -927,7 +927,7 @@ class CompletionArgSuite extends BaseCompletionSuite:
927
927
|""" .stripMargin,
928
928
""" |aaa = : Int
929
929
|abb = : Option[Int]
930
- |assert(assertion: Boolean): Unit
930
+ |assert(inline assertion: Boolean): Unit
931
931
|""" .stripMargin,
932
932
topLines = Some (3 ),
933
933
)
@@ -945,7 +945,7 @@ class CompletionArgSuite extends BaseCompletionSuite:
945
945
|""" .stripMargin,
946
946
""" |aaa = : Int
947
947
|abb = : Option[Int]
948
- |assert(assertion: Boolean): Unit
948
+ |assert(inline assertion: Boolean): Unit
949
949
|""" .stripMargin,
950
950
topLines = Some (3 ),
951
951
)
@@ -963,7 +963,7 @@ class CompletionArgSuite extends BaseCompletionSuite:
963
963
|""" .stripMargin,
964
964
""" |abb = : Option[Int]
965
965
|acc = : List[Int]
966
- |assert(assertion: Boolean): Unit
966
+ |assert(inline assertion: Boolean): Unit
967
967
|""" .stripMargin,
968
968
topLines = Some (3 ),
969
969
)
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ class CompletionCancelSuite extends BaseCompletionSuite:
90
90
| val x = asser@@
91
91
|}
92
92
""" .stripMargin,
93
- """ |assert(assertion: Boolean): Unit
94
- |assert(assertion: Boolean, message: => Any): Unit
93
+ """ |assert(inline assertion: Boolean): Unit
94
+ |assert(inline assertion: Boolean, inline message: => Any): Unit
95
95
|""" .stripMargin
96
96
)
97
97
You can’t perform that action at this time.
0 commit comments