forked from JavaTX/JavaCompilerCore
Less general type
This commit is contained in:
parent
fb7b51a971
commit
3c43978c55
@ -32,12 +32,13 @@ public class OverloadPattern {
|
|||||||
return x * y;
|
return x * y;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object m(Point point) {
|
Number m(Point point) {
|
||||||
switch(point) {
|
switch(point) {
|
||||||
case Point(Integer x, Integer y) ->
|
case Point(Integer x, Integer y) ->
|
||||||
m$Point$_$java$lang$Integer$_$java$lang$Integer$_$(point);
|
m$Point$_$java$lang$Integer$_$java$lang$Integer$_$(point);
|
||||||
case Point(Float x, Float y) ->
|
case Point(Float x, Float y) ->
|
||||||
m$Point$_$java$lang$Float$_$java$lang$Float$_$(point);
|
m$Point$_$java$lang$Float$_$java$lang$Float$_$(point);
|
||||||
|
default -> throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user