File tree 3 files changed +23
-2
lines changed
compiler/src/dotty/tools/dotc/parsing
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -2873,7 +2873,7 @@ object Parsers {
2873
2873
val isAccessMod = accessModifierTokens contains in.token
2874
2874
val mods1 = addModifier(mods)
2875
2875
loop(if (isAccessMod) accessQualifierOpt(mods1) else mods1)
2876
- else if (in.token == NEWLINE && (mods.hasFlags || mods.hasAnnotations)) {
2876
+ else if (in.isNewLine && (mods.hasFlags || mods.hasAnnotations)) {
2877
2877
in.nextToken()
2878
2878
loop(mods)
2879
2879
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package scala.quoted
4
4
*
5
5
* `Expr` has extension methods that are defined in `scala.quoted.Quotes`.
6
6
*/
7
- abstract class Expr [+ T ] private [scala]
7
+ abstract class Expr [+ T ] private [scala] ()
8
8
9
9
/** Constructors for expressions */
10
10
object Expr {
Original file line number Diff line number Diff line change
1
+ object Test :
2
+
3
+ def transparent = println(" transparent method called" )
4
+
5
+ transparent
6
+ println()
7
+ inline def f1 = 1
8
+
9
+ transparent
10
+ inline def f2 = 2
11
+
12
+ transparent
13
+ trait T1
14
+
15
+ transparent
16
+
17
+ inline def f3 = 3
18
+
19
+ transparent
20
+
21
+ trait T2
You can’t perform that action at this time.
0 commit comments