view tests/mini/arrays19.d @ 670:4f004553de33

Fixed dynamic array -> boolean. does (arr.ptr !is null) now instead of (arr.length != 0)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 08 Oct 2008 22:38:52 +0200
parents 23538d0f0d5b
children
line wrap: on
line source

module mini.arrays19;

extern(C) int printf(char*, ...);

void main()
{
  bool var = ([] is null);
  assert(var);
}