summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/ast/TreeGen.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java
index 93416b0e59..ccd3434bf7 100644
--- a/sources/scalac/ast/TreeGen.java
+++ b/sources/scalac/ast/TreeGen.java
@@ -472,6 +472,12 @@ public class TreeGen implements Kinds, Modifiers, TypeTags {
}
/** Builds a TypeApply node with given function and arguments. */
+ public TypeApply TypeApply(int pos, Tree fn, Type[] targs) {
+ return TypeApply(pos, fn, mkTypes(pos, targs));
+ }
+ public TypeApply TypeApply(Tree fn, Type[] targs) {
+ return TypeApply(fn.pos, fn, targs);
+ }
public TypeApply TypeApply(int pos, Tree fn, Tree[] targs) {
try {
switch (fn.type) {