1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Combine lets.

This commit is contained in:
Patrick Thomson 2019-10-21 12:41:45 -04:00
parent cbda7cf344
commit ecaa5a1671

View File

@ -207,8 +207,8 @@ instance Compile Py.ClassDefinition where
body <- compile pybody buildTypeCall next
let coreName = Name.named' n
let assignClass = coreName :<- (rec coreName body)
let continuing = fmap (locate it . (assignClass >>>=))
assignClass = coreName :<- (rec coreName body)
continuing = fmap (locate it . (assignClass >>>=))
continuing (local (def n) (cc next))
instance Compile Py.ComparisonOperator