summary refs log tree commit diff stats
path: root/tests/seq
Commit message (Expand)AuthorAgeFilesLines
* Empty check in shallow [backport] (#9676)ishowta2018-11-211-0/+24
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-168-198/+181
* make t7346 work againAndreas Rumpf2018-09-241-10/+0
* Test cases for #6969 #7346 #7581Ganesh Viswanathan2018-09-121-0/+10
* fixes #4973Andreas Rumpf2017-02-011-2/+11
* add test for shallow seq copyJacek Sieka2016-03-231-0/+17
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-044-50/+50
* fixed tests/seq/tsequtils.nimDo Nhat Minh2015-01-071-1/+1
* Rename sequtils.distnct to sequtils.deduplicate.Reimer Behrends2014-06-281-2/+2
* new tester; all tests categorizedAraq2014-01-136-0/+172
36699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Passes if it compiles
# From issue #1946

type
  Part = object
    index: int ## array index of argument to be accessed

proc foobar(): int =
    var x: Part
    if x.index < high(int):
        discard
    0

const x = foobar()