File: W_NullArgRedundantArgs.fs

package info (click to toggle)
fsharp 4.0.0.4%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 58,824 kB
  • ctags: 1,395
  • sloc: cs: 2,983; ml: 1,098; makefile: 410; sh: 409; xml: 113
file content (7 lines) | stat: -rw-r--r-- 302 bytes parent folder | download
1
2
3
4
5
6
7
// #Regression #Diagnostics 
//<Expects status="warning" span="(6,17-6,24)" id="FS3189">Redundant arguments are being ignored in function 'nullArg'\. Expected 1 but got 2 arguments\.$</Expects>
namespace M0
module M1 =
  module M2 =
    let f arg = nullArg "arg" "Ignored"
    let g arg = nullArg "arg"