File tree 2 files changed +15
-0
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,20 @@ object Typer {
62
62
if (! tree.isEmpty && ! tree.isInstanceOf [untpd.TypedSplice ] && ctx.typerState.isGlobalCommittable)
63
63
assert(tree.pos.exists, s " position not set for $tree # ${tree.uniqueId}" )
64
64
65
+ /** A context property that indicates the owner of any expressions to be typed in the context
66
+ * if that owner is different from the context's owner. Typically, a context with a class
67
+ * as owner would have a local dummy as ExprOwner value.
68
+ */
65
69
private val ExprOwner = new Property .Key [Symbol ]
70
+
71
+ /** An attachment on a Select node with an `apply` field indicating that the `apply`
72
+ * was inserted by the Typer.
73
+ */
66
74
private val InsertedApply = new Property .Key [Unit ]
75
+
76
+ /** An attachment on a tree `t` occurring as part of a `t()` where
77
+ * the `()` was dropped by the Typer.
78
+ */
67
79
private val DroppedEmptyArgs = new Property .Key [Unit ]
68
80
}
69
81
Original file line number Diff line number Diff line change 2
2
object a extends fuz.Fuzbar {
3
3
override def str = " "
4
4
str()()()()()() // error: missing argument
5
+ str()() // error: missing argument
6
+ str() // ok
7
+ str // ok
5
8
}
You can’t perform that action at this time.
0 commit comments