fix(muscript): Allow subclasses in dynamic definition
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
1c5e9ee1b9
commit
b2887a3ed6
|
@ -7,7 +7,7 @@ import io.gitlab.jfronny.muscript.compiler.CodeLocation;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public non-sealed interface DList extends Dynamic<List<Dynamic<?>>> {
|
public non-sealed interface DList extends Dynamic<List<? extends Dynamic<?>>> {
|
||||||
default Dynamic<?> get(int i) {
|
default Dynamic<?> get(int i) {
|
||||||
return getValue().get(i);
|
return getValue().get(i);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
public non-sealed interface DObject extends Dynamic<Map<String, Dynamic<?>>> {
|
public non-sealed interface DObject extends Dynamic<Map<String, ? extends Dynamic<?>>> {
|
||||||
default @Nullable Dynamic<?> get(String key) {
|
default @Nullable Dynamic<?> get(String key) {
|
||||||
return getValue().get(key);
|
return getValue().get(key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user