1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
stringinterpolation_macro-neg.scala:13: error: there are no parts
new StringContext().f()
^
stringinterpolation_macro-neg.scala:14: error: too few arguments for interpolated string
new StringContext("", " is ", "%2d years old").f(s)
^
stringinterpolation_macro-neg.scala:15: error: too many arguments for interpolated string
new StringContext("", " is ", "%2d years old").f(s, d, d)
^
stringinterpolation_macro-neg.scala:16: error: too few arguments for interpolated string
new StringContext("", "").f()
^
stringinterpolation_macro-neg.scala:19: error: type mismatch;
found : String
required: Boolean
f"$s%b"
^
stringinterpolation_macro-neg.scala:20: error: type mismatch;
found : String
required: Char
f"$s%c"
^
stringinterpolation_macro-neg.scala:21: error: type mismatch;
found : Double
required: Char
f"$f%c"
^
stringinterpolation_macro-neg.scala:22: error: type mismatch;
found : String
required: Int
f"$s%x"
^
stringinterpolation_macro-neg.scala:23: error: type mismatch;
found : Boolean
required: Int
f"$b%d"
^
stringinterpolation_macro-neg.scala:24: error: type mismatch;
found : String
required: Int
f"$s%d"
^
stringinterpolation_macro-neg.scala:25: error: type mismatch;
found : Double
required: Int
f"$f%o"
^
stringinterpolation_macro-neg.scala:26: error: type mismatch;
found : String
required: Double
f"$s%e"
^
stringinterpolation_macro-neg.scala:27: error: type mismatch;
found : Boolean
required: Double
f"$b%f"
^
stringinterpolation_macro-neg.scala:32: error: type mismatch;
found : String
required: Int
Note that implicit conversions are not applicable because they are ambiguous:
both value strToInt2 of type String => Int
and value strToInt1 of type String => Int
are possible conversion functions from String to Int
f"$s%d"
^
stringinterpolation_macro-neg.scala:35: error: illegal conversion character 'i'
f"$s%i"
^
stringinterpolation_macro-neg.scala:38: error: Illegal flag '+'
f"$s%+ 0,(s"
^
stringinterpolation_macro-neg.scala:38: error: Illegal flag ' '
f"$s%+ 0,(s"
^
stringinterpolation_macro-neg.scala:38: error: Illegal flag '0'
f"$s%+ 0,(s"
^
stringinterpolation_macro-neg.scala:38: error: Illegal flag ','
f"$s%+ 0,(s"
^
stringinterpolation_macro-neg.scala:38: error: Illegal flag '('
f"$s%+ 0,(s"
^
stringinterpolation_macro-neg.scala:39: error: Only '-' allowed for c conversion
f"$c%#+ 0,(c"
^
stringinterpolation_macro-neg.scala:40: error: # not allowed for d conversion
f"$d%#d"
^
stringinterpolation_macro-neg.scala:41: error: ',' only allowed for d conversion of integral types
f"$d%,x"
^
stringinterpolation_macro-neg.scala:42: error: only use '+' for BigInt conversions to o, x, X
f"$d%+ (x"
^
stringinterpolation_macro-neg.scala:42: error: only use ' ' for BigInt conversions to o, x, X
f"$d%+ (x"
^
stringinterpolation_macro-neg.scala:42: error: only use '(' for BigInt conversions to o, x, X
f"$d%+ (x"
^
stringinterpolation_macro-neg.scala:43: error: ',' not allowed for a, A
f"$f%,(a"
^
stringinterpolation_macro-neg.scala:43: error: '(' not allowed for a, A
f"$f%,(a"
^
stringinterpolation_macro-neg.scala:44: error: Only '-' allowed for date/time conversions
f"$t%#+ 0,(tT"
^
stringinterpolation_macro-neg.scala:47: error: precision not allowed
f"$c%.2c"
^
stringinterpolation_macro-neg.scala:48: error: precision not allowed
f"$d%.2d"
^
stringinterpolation_macro-neg.scala:49: error: precision not allowed
f"%.2%"
^
stringinterpolation_macro-neg.scala:50: error: precision not allowed
f"%.2n"
^
stringinterpolation_macro-neg.scala:51: error: precision not allowed
f"$f%.2a"
^
stringinterpolation_macro-neg.scala:52: error: precision not allowed
f"$t%.2tT"
^
stringinterpolation_macro-neg.scala:55: error: No last arg
f"%<s"
^
stringinterpolation_macro-neg.scala:56: error: No last arg
f"%<c"
^
stringinterpolation_macro-neg.scala:57: error: No last arg
f"%<tT"
^
stringinterpolation_macro-neg.scala:58: error: Argument index out of range
f"${8}%d ${9}%d%3$$d"
^
stringinterpolation_macro-neg.scala:59: error: Argument index out of range
f"${8}%d ${9}%d%0$$d"
^
stringinterpolation_macro-neg.scala:62: warning: Index is not this arg
f"${8}%d ${9}%1$$d"
^
stringinterpolation_macro-neg.scala:63: warning: Argument index ignored if '<' flag is present
f"$s%s $s%s %1$$<s"
^
stringinterpolation_macro-neg.scala:64: warning: Index is not this arg
f"$s%s $s%1$$s"
^
stringinterpolation_macro-neg.scala:67: error: type mismatch;
found : String
required: java.util.Formattable
f"$s%#s"
^
stringinterpolation_macro-neg.scala:70: error: 'G' doesn't seem to be a date or time conversion
f"$t%tG"
^
stringinterpolation_macro-neg.scala:71: error: Date/time conversion must have two characters
f"$t%t"
^
stringinterpolation_macro-neg.scala:72: error: Missing conversion operator in '%10.5'; use %% for literal %, %n for newline
f"$s%10.5"
^
stringinterpolation_macro-neg.scala:75: error: conversions must follow a splice; use %% for literal %, %n for newline
f"${d}random-leading-junk%d"
^
three warnings found
45 errors found
|