test/com/google/javascript/jscomp/TypeCheckTest.java
/** Tests that the match method of strings returns nullable arrays. */
Tests that the match method of strings returns nullable arrays.
Tests that the match method of strings returns nullable arrays .
@Test
  public void testBug908701() {
    testTypesWithExterns(
        new TestExternsBuilder().addString().build(),
        lines(
            "/** @type {String} */ var s = new String('foo');", 
            "var b = s.match(/a/) != null;"));
  }
@ Test public void testBug908701 ( ) { testTypesWithExterns ( new TestExternsBuilder ( ) . addString ( ) . build ( ) , lines ( "/** @type {String} */ var s = new String('foo');" , "var b = s.match(/a/) != null;" ) ) ; }
Tests that the match method of strings returns nullable arrays.
Tests that the match method of strings returns nullable arrays .
// preserve newlines