diff --git a/lib/orb.ex b/lib/orb.ex index 379a656..0a7dcb2 100644 --- a/lib/orb.ex +++ b/lib/orb.ex @@ -504,7 +504,7 @@ defmodule Orb do # TODO: don’t import types/1 import Orb, only: [export: 1, global: 1, global: 2, global: 3, types: 1] import Orb.DSL.Defw - alias Orb.{I32, I64, S32, U32, F32, F64, Memory, Table} + alias Orb.{I32, I64, S32, U32, F32, F64, Memory, Table, Str} require Orb.{I32, I64, Stack, Table, Memory, Import} unquote(def_quoted) diff --git a/test/string_constants_test.exs b/test/string_constants_test.exs index 2c26a48..1463ef5 100644 --- a/test/string_constants_test.exs +++ b/test/string_constants_test.exs @@ -7,11 +7,11 @@ defmodule StringConstantsTest do defmodule HTMLTypes do use Orb - defw doctype(), Orb.Str do + defw doctype(), Str do "" end - defw mime_type(), Orb.Str do + defw mime_type(), Str do "text/html" end end