Browse Source

table/definition: fix `defines_type?`

Blaž Hrastnik 7 months ago
parent
commit
3dc0cdcbf8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/amnesia/table/definition.ex

+ 1 - 1
lib/amnesia/table/definition.ex View File

@@ -935,7 +935,7 @@ defmodule Amnesia.Table.Definition do
935 935
 
936 936
         unquote(block)
937 937
 
938
-        unless Kernel.Typespec.defines_type?(__MODULE__, :t, 0) do
938
+        unless Kernel.Typespec.defines_type?(__MODULE__, {:t, 0}) do
939 939
           @opaque t :: %__MODULE__{}
940 940
         end
941 941
       end