Fix type for imported functions
diff --git a/src/wasm.h b/src/wasm.h
index 9f81336..cd6e364 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -2400,9 +2400,10 @@
 
 class Function : public Importable {
 public:
+  Function() : type(Signature(), NonNullable, imported() ? Inexact : Exact) {}
+
   // A non-nullable reference to a function type. Exact for defined functions.
-  // TODO: Inexact for imported functions.
-  Type type = Type(Signature(), NonNullable, Exact);
+  Type type;
   IRProfile profile = IRProfile::Normal;
   std::vector<Type> vars; // non-param locals