summaryrefslogtreecommitdiff
path: root/sources/scalac/typechecker/Infer.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/typechecker/Infer.java')
-rw-r--r--sources/scalac/typechecker/Infer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/typechecker/Infer.java b/sources/scalac/typechecker/Infer.java
index b23890f0d0..41f007059d 100644
--- a/sources/scalac/typechecker/Infer.java
+++ b/sources/scalac/typechecker/Infer.java
@@ -556,7 +556,7 @@ public class Infer implements Modifiers, Kinds {
private Type normalize(Type tp) {
switch (tp) {
case MethodType(Symbol[] params, Type restype):
- return global.definitions.functionType(
+ return global.definitions.FUNCTION_TYPE(
Symbol.type(params), normalize(restype));
case PolyType(Symbol[] tparams, Type restype):
if (tparams.length == 0) return normalize(restype);