Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created November 5, 2012 19:36
Show Gist options
  • Save takikawa/4019841 to your computer and use it in GitHub Desktop.
Save takikawa/4019841 to your computer and use it in GitHub Desktop.
require/typed from submodule
#lang typed/racket
(module foo racket
(define x 3)
(provide x))
(require/typed (submod "." foo) [x Integer])
link: module mismatch;
possibly, bytecode file needs re-compile because dependencies changed
importing module: 'anonymous-module
exporting module: 'anonymous-module
exporting phase level: 0
internal explanation: variable not provided (directly or indirectly) in: x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment