Consolidate towards ImplicitAs handling. (#2719)

This eliminates the older TryTypeConversion approach in favor of the ImplicitAs logic. This makes `return {}` work correctly.
This commit is contained in:
Jon Ross-Perkins
2023-03-31 08:11:17 -07:00
committed by GitHub
parent 1f741c292f
commit 7824e9618c
28 changed files with 403 additions and 194 deletions
@@ -28,7 +28,7 @@
// CHECK:STDOUT: {kind: FunctionDefinition, arg0: node+2, arg1: block0},
// CHECK:STDOUT: {kind: FunctionDeclaration, arg0: str2, arg1: callable1},
// CHECK:STDOUT: {kind: StubReference, arg0: nodeEmptyStruct, type: nodeEmptyStructType},
// CHECK:STDOUT: {kind: Call, arg0: call0, arg1: callable0, type: nodeEmptyTuple},
// CHECK:STDOUT: {kind: Call, arg0: call0, arg1: callable0},
// CHECK:STDOUT: {kind: FunctionDefinition, arg0: node+4, arg1: block6},
// CHECK:STDOUT: ]
// CHECK:STDOUT: node_blocks: [