1
1
mirror of https://github.com/github/semantic.git synced 2024-12-14 17:31:48 +03:00

defineBuiltIn already returns ().

This commit is contained in:
Rob Rix 2018-12-10 11:38:07 -05:00
parent fa950f3239
commit 3d962c40c7

View File

@ -136,16 +136,16 @@ instance HasPrelude 'PHP
instance HasPrelude 'Python where
definePrelude _ =
void $ defineBuiltIn (Declaration $ X.name "print") Print
defineBuiltIn (Declaration $ X.name "print") Print
instance HasPrelude 'Ruby where
definePrelude _ = do
defineSelf
void $ defineBuiltIn (Declaration $ X.name "puts") Print
defineBuiltIn (Declaration $ X.name "puts") Print
defineClass (Declaration (X.name "Object")) [] $ do
void $ defineBuiltIn (Declaration $ X.name "inspect") Show
defineBuiltIn (Declaration $ X.name "inspect") Show
instance HasPrelude 'TypeScript where
definePrelude _ = defineSelf