Skip to content

Commit

Permalink
InteropLibrary parameter is added in specialized
Browse files Browse the repository at this point in the history
Parameters of type InteropLibrary are currently correctly generated only
when annotated with `Builtin.Specialized`. Should eventually get rid of
this limitation and merge the logic into both variants.
  • Loading branch information
hubertp committed Sep 21, 2022
1 parent 72e5f79 commit 13973fb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public final Object toArray() {
}

@Builtin.Method(name = "slice", description = "Returns a slice of this Vector.")
@Builtin.Specialize
@Builtin.WrapException(from = UnsupportedMessageException.class, to = PanicException.class)
public final Vector slice(long start, long end, InteropLibrary interop)
throws UnsupportedMessageException {
Expand Down

0 comments on commit 13973fb

Please sign in to comment.