Skip to content

apply[A](args: A*) and hex strings don't work together #94

Description

@euonymos

This works:

val setup1: List[ByteString] = List.Cons(hex"dead", List.Cons(hex"beef", Nil))

but this doesn't:

val setup2: List[ByteString] = List.apply(hex"dead", hex"beef")

saying:

[
scalus.builtin.ByteString.hex(
_root_.scala.StringContext.apply(["dead" : String]))([ : Any]),
scalus.builtin.ByteString.hex(
_root_.scala.StringContext.apply(["beef" : String]))([ : Any])
: scalus.builtin.ByteString] is not supported in Scalus scripts
Try rewriting your program without using it

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions