]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blob - t/10-base.t
282863a72f2b2c85c75231116e7d2dcb1d2de3a8
[perl/modules/Lexical-Types.git] / t / 10-base.t
1 #!perl -T
2
3 use strict;
4 use warnings;
5
6 use Test::More tests => 4;
7
8 sub Int::TYPEDSCALAR { (caller(0))[2] }
9
10 {
11  use Lexical::Types;
12
13  my Int $a;
14  is $a, __LINE__-1, 'single';
15
16  my Int ($b, $c);
17  is $b, __LINE__-1, 'double (a)';
18  is $c, __LINE__-2, 'double (b)';
19
20  for my Int $d (0) {
21   is $d, 0, 'for';
22  }
23 }