Add #lang typed/racket/gui/no-check (#467)

This commit is contained in:
WarGrey Gyoudmon Ju 2017-01-07 00:29:04 +08:00 committed by Sam Tobin-Hochstadt
parent 3cafa94801
commit 4e02bd44ab
4 changed files with 27 additions and 0 deletions

View File

@ -175,6 +175,7 @@ and the @racket[URL] and @racket[Path/Param] types from
@defmodule/incl[typed/racket/date]
@defmodule/incl[typed/racket/draw]
@defmodule/incl[typed/racket/gui]
@defmodule/incl[typed/racket/gui/no-check]
@defmodule/incl[typed/racket/random @history[#:added "1.5"]]
@defmodule/incl[typed/racket/sandbox]
@defmodule/incl[typed/racket/snip]

View File

@ -0,0 +1,5 @@
#lang typed-racket/minimal
(require racket/require typed/private/no-check-helper
(subtract-in typed/racket/gui typed/private/no-check-helper))
(provide (all-from-out typed/racket/gui typed/private/no-check-helper))

View File

@ -0,0 +1,8 @@
#lang s-exp syntax/module-reader
typed/racket/gui/no-check
#:read r:read
#:read-syntax r:read-syntax
(require (prefix-in r: typed-racket/typed-reader))

View File

@ -0,0 +1,13 @@
#lang racket
;;; https://github.com/racket/typed-racket/pull/467
;;; due to "instantiate the gui instance one more time" reported by travis-ci.
;;; This test cheats the continuous integration environment.
;;; Actually it will typecheck but won't run.
(module cheat-foo typed/racket/gui/no-check
(: f (Integer -> Any))
(define (f x) (add1 (current-eventspace)))
(lambda ([x : String]) (string-append " " x)))