|
172 | 172 | [input (<| (typeA.with @type.Character)
|
173 | 173 | (analysis archive input))
|
174 | 174 | expectedT analysis.expected_type
|
175 |
| - .let [expectedT (@type.old_type expectedT)] |
| 175 | + .let [expectedT (@type.old expectedT)] |
176 | 176 | conditionals (list.each' ! (.function (_ [cases branch])
|
177 | 177 | (<| (by ! each (|>> [cases]))
|
178 | 178 | (typeA.with expectedT)
|
|
221 | 221 | [(?.and ?list.any ?list.any)
|
222 | 222 | (.function (_ extension_name analysis archive [module 'expression])
|
223 | 223 | (monad.let [! phase.monad]
|
224 |
| - [module (eval archive (@type.new_type @type.Text) module)] |
| 224 | + [module (eval archive (@type.new @type.Text) module)] |
225 | 225 | (analysis.with_current_module (as (-> Any Text) module)
|
226 | 226 | (analysis archive (code.with [(as (-> Any Text) module) 0 0] 'expression)))))]))
|
227 | 227 |
|
|
233 | 233 | (.function (_ extension_name analysis archive [typeC valueC])
|
234 | 234 | (monad.let [! phase.monad]
|
235 | 235 | [actualT (by ! each (|>> (as (-> Any @type.Type)))
|
236 |
| - (eval archive (@type.new_type @type.Type) typeC)) |
237 |
| - _ (typeA.inference (@type.old_type actualT))] |
238 |
| - (<| (typeA.with (@type.old_type actualT)) |
| 236 | + (eval archive (@type.new @type.Type) typeC)) |
| 237 | + _ (typeA.inference (@type.old actualT))] |
| 238 | + (<| (typeA.with (@type.old actualT)) |
239 | 239 | (analysis archive valueC))))]))
|
240 | 240 |
|
241 | 241 | (the .public (as#_extension eval)
|
|
245 | 245 | [(?.and ?list.any ?list.any)
|
246 | 246 | (.function (_ extension_name analysis archive [typeC it])
|
247 | 247 | (monad.let [! phase.monad]
|
248 |
| - [coercion (eval archive (@type.new_type @type.Type) typeC) |
249 |
| - [actual_type it] (inference.general archive analysis (@type.old_type (as (-> Any @type.Type) coercion)) (stack it)) |
| 248 | + [coercion (eval archive (@type.new @type.Type) typeC) |
| 249 | + [actual_type it] (inference.general archive analysis (@type.old (as (-> Any @type.Type) coercion)) (stack it)) |
250 | 250 | _ (typeA.inference actual_type)]
|
251 | 251 | (.when it
|
252 | 252 | (stack it)
|
|
301 | 301 | ... the exception, and know that the default it was looking for has the correct type, because
|
302 | 302 | ... the exception is only ever raised _after_ the inference.
|
303 | 303 | (monad.let !
|
304 |
| - [_ (typeA.inference (@type.old_type type))] |
| 304 | + [_ (typeA.inference (@type.old type))] |
305 | 305 | (analysis.except ///.defaults_cannot_be_referenced [def_name]))
|
306 | 306 |
|
307 | 307 | else
|
308 | 308 | (monad.let !
|
309 |
| - [_ (typeA.inference (@type.old_type type)) |
| 309 | + [_ (typeA.inference (@type.old type)) |
310 | 310 | @ analysis.provenance]
|
311 | 311 | (pure (analysis.constant @ def_name)))))
|
312 | 312 | (analysis.except ..cannot_access_global [expected def_name])))))]))
|
|
0 commit comments