| CARVIEW |
Select Language
HTTP/2 200
date: Tue, 30 Dec 2025 14:03:55 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/vlang/v.git
etag: W/"2b58024562e1deb1d724233b66f0f3d8"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=SgH%2Bju2kDdutSwKLcweN5bq4uhBfCZUMAhBOLAECV03UkjADhgtnP%2BVF6M1pfJShsVq2UtfhwHNw40zmtgeoTmq0sjDbV4AHbphUe44eHzWH0QgV%2BSwEz%2FmGVNJeySZhTxchdjWkwhctOQQFauEpT%2BbwBkEyI0Zqu1Pfy3finu8B%2F7aQQ%2FQ1Hzbp9mCvx0Yfkq2tX%2FOliPpNwfD0Pjzhofkbih021AFfDO7C3%2B6OLx5GsH1QLsJUK%2BIB6HsjftxxvFodVUslzAbC%2FNkkJnb37w%3D%3D--eeyxFfMbtoGKCPtx--ov%2BnWjmoOI64%2FO40DQIFLg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1552878023.1767103433; Path=/; Domain=github.com; Expires=Wed, 30 Dec 2026 14:03:53 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 30 Dec 2026 14:03:53 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E050:1E3869:B6E7DA:C7EA4E:6953DBC9
ast,checker: improve type checking for sumtypes with generics (fix #2… · vlang/v@ebf629d · GitHub
Copy file name to clipboardExpand all lines: vlib/v/checker/check_types.v
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit ebf629d
File tree
Expand file treeCollapse file tree
7 files changed
+208
-21
lines changedOpen diff view settings
Filter options
- vlib/v
- ast
- checker
- parser
- tests/sumtypes
Expand file treeCollapse file tree
7 files changed
+208
-21
lines changedOpen diff view settings
Collapse file
+70-16Lines changed: 70 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
940 | 943 | | |
941 | 944 | | |
942 | 945 | | |
| |||
960 | 963 | | |
961 | 964 | | |
962 | 965 | | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
963 | 971 | | |
964 | 972 | | |
965 | 973 | | |
| |||
1178 | 1186 | | |
1179 | 1187 | | |
1180 | 1188 | | |
| 1189 | + | |
1181 | 1190 | | |
1182 | 1191 | | |
1183 | 1192 | | |
| |||
1199 | 1208 | | |
1200 | 1209 | | |
1201 | 1210 | | |
| 1211 | + | |
1202 | 1212 | | |
1203 | 1213 | | |
1204 | 1214 | | |
| |||
1220 | 1230 | | |
1221 | 1231 | | |
1222 | 1232 | | |
| 1233 | + | |
1223 | 1234 | | |
1224 | 1235 | | |
1225 | 1236 | | |
| |||
1242 | 1253 | | |
1243 | 1254 | | |
1244 | 1255 | | |
| 1256 | + | |
1245 | 1257 | | |
1246 | 1258 | | |
1247 | 1259 | | |
| |||
1265 | 1277 | | |
1266 | 1278 | | |
1267 | 1279 | | |
| 1280 | + | |
1268 | 1281 | | |
1269 | 1282 | | |
1270 | 1283 | | |
| |||
1292 | 1305 | | |
1293 | 1306 | | |
1294 | 1307 | | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1299 | 1313 | | |
1300 | 1314 | | |
1301 | 1315 | | |
| |||
1328 | 1342 | | |
1329 | 1343 | | |
1330 | 1344 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1335 | 1350 | | |
1336 | 1351 | | |
1337 | 1352 | | |
| |||
1354 | 1369 | | |
1355 | 1370 | | |
1356 | 1371 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1362 | 1378 | | |
1363 | 1379 | | |
1364 | 1380 | | |
1365 | 1381 | | |
1366 | 1382 | | |
1367 | 1383 | | |
1368 | 1384 | | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1369 | 1423 | | |
1370 | 1424 | | |
1371 | 1425 | | |
| |||
1375 | 1429 | | |
1376 | 1430 | | |
1377 | 1431 | | |
| 1432 | + | |
1378 | 1433 | | |
1379 | 1434 | | |
1380 | 1435 | | |
| |||
1893 | 1948 | | |
1894 | 1949 | | |
1895 | 1950 | | |
1896 | | - | |
| 1951 | + | |
1897 | 1952 | | |
1898 | 1953 | | |
1899 | 1954 | | |
| |||
1930 | 1985 | | |
1931 | 1986 | | |
1932 | 1987 | | |
1933 | | - | |
| 1988 | + | |
1934 | 1989 | | |
1935 | 1990 | | |
1936 | 1991 | | |
1937 | 1992 | | |
1938 | 1993 | | |
1939 | 1994 | | |
1940 | 1995 | | |
1941 | | - | |
1942 | 1996 | | |
1943 | 1997 | | |
1944 | 1998 | | |
| |||
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
Collapse file
vlib/v/checker/check_types.v
Copy file name to clipboardExpand all lines: vlib/v/checker/check_types.v+46Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
463 | 478 | | |
464 | 479 | | |
465 | 480 | | |
| |||
950 | 965 | | |
951 | 966 | | |
952 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
953 | 999 | | |
954 | 1000 | | |
955 | 1001 | | |
| |||
Collapse file
+27Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1572 | 1599 | | |
1573 | 1600 | | |
1574 | 1601 | | |
| |||
Collapse file
+42-5Lines changed: 42 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
703 | 711 | | |
704 | 712 | | |
705 | 713 | | |
| |||
783 | 791 | | |
784 | 792 | | |
785 | 793 | | |
786 | | - | |
787 | | - | |
788 | | - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
789 | 823 | | |
790 | 824 | | |
791 | 825 | | |
| |||
936 | 970 | | |
937 | 971 | | |
938 | 972 | | |
939 | | - | |
940 | | - | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
941 | 978 | | |
942 | 979 | | |
943 | 980 | | |
| |||
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
| |||
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
| 731 | + | |
730 | 732 | | |
731 | 733 | | |
732 | 734 | | |
| |||
Collapse file
vlib/v/tests/sumtypes/sumtype_type_coercion_test.v
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
You can’t perform that action at this time.
0 commit comments