Logo
Explore Help
Register Sign In
shishantbiswas/c3c
1
1
Fork 0
You've already forked c3c
mirror of https://github.com/c3lang/c3c.git synced 2026-02-27 12:01:16 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
c3c/test/test_suite/compile_time_introspection/defined_subscript.c3
Christoffer Lerno 9af37fe427 $and, $or, $is_const, $assignable, .is_eq, .is_ordered, $defined($vatype(2)) works looking if we can create a type, $defined(foo[0]) $defined(foo()). Remove $checks and @checked. Improvide casting checks to always work without destructive changes.
2023-10-24 22:06:04 +02:00

7 lines
128 B
Plaintext
Raw Permalink Blame History

fn void main()
{
int[<2>] ab = { 11, 22 };
$assert !$defined(ab[3]);
$assert $defined(ab[1]);
$assert !$defined(ab[0][0]);
}
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.24.4 Page: 187ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API