... got it wrong
This commit is contained in:
parent
9405ba1b4e
commit
303fa869a8
2 changed files with 6 additions and 10 deletions
|
|
@ -1,14 +1,10 @@
|
|||
import { Type } from "../metacircular.js";
|
||||
import { Int } from "../primitives/symbols.js";
|
||||
import { String } from "../structures/list_types/string.js";
|
||||
import { prodType } from "../type_registry.js";
|
||||
import { makeProductType } from "./product.js";
|
||||
|
||||
export const NominalType = prodType(Int, Type);
|
||||
export const NominalType = prodType(String, Type);
|
||||
|
||||
export const ModuleNominalType = makeProductType(Int, Type);
|
||||
export const ModuleNominalType = makeProductType(String, Type);
|
||||
|
||||
export const nominalType = x => {
|
||||
const result = ModuleNominalType.l[5].i(x); // dirty!!
|
||||
result.__proto__.toString = () => "HEY";
|
||||
return result;
|
||||
}
|
||||
export const nominalType = ModuleNominalType.l[5].i; // dirty!!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue